import {BrowserRouter as Router, Route, Routes} from 'react-router';
import './App.css';
import SchedulePage from './pages/SchedulePage.jsx';
import TimerPage from "./pages/TimerPage.jsx";
import theme from "./theme/index.js";
import {ThemeProvider} from "@mui/material";

function App() {
    return (
        <ThemeProvider theme={theme}>
            <Router>
                <div className="app">
                    <Routes>
                        <Route path="/" element={<SchedulePage/>}/>
                        <Route path="/timer" element={<TimerPage/>}/>
                    </Routes>
                </div>
            </Router>
        </ThemeProvider>
    );
}

export default App;